package cn.kgm.template.server.entity;

import cn.kgm.template.dto.base.TemplateEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * # 技术改变自己 #
 * 模板数据,select标签表选中数据
 *
 * @author kapp-i
 * @date 2024-03-18 14:47:46
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "template_checked")
@ApiModel(value = "TemplateChecked", description = "模板数据,select标签表选中数据")
public class TemplateChecked extends TemplateEntity<Long> {

    /**
     * 复选框,父级元素ID
     */
    @ApiModelProperty(value = "复选框,父级元素ID")
    @TableField(value = "info_id")
    private Long infoId;

    /**
     * 复选框selects表中ID
     */
    @ApiModelProperty(value = "复选框selects表中ID")
    @TableField(value = "select_id")
    private Long selectId;

    /**
     * 复选框选中的options的ID
     */
    @ApiModelProperty(value = "复选框选中的options的ID")
    @TableField(value = "checked_option_id")
    private Long checkedOptionId;

    /**
     * 非配置option选择框,选中的信息名称
     */
    @ApiModelProperty(value = "非配置option选择框,选中的信息名称")
    @TableField(value = "life_option_name", condition = LIKE)
    private String lifeOptionName;

    /**
     * 非配置option选择框,选中的信息值
     */
    @ApiModelProperty(value = "非配置option选择框,选中的信息值")
    @TableField(value = "life_option_value", condition = LIKE)
    private String lifeOptionValue;
}
